package com.xdf.swids.controller;

import com.xdf.swids.model.PeopleConfig;
import com.xdf.swids.service.IPeopleConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/peopleConfig")
public class PeopleConfigController {
    @Autowired
    private IPeopleConfigService peopleConfigService;

    @GetMapping("/all")
    public List<PeopleConfig> selectAll(){
        return peopleConfigService.selectAll();
    }
}
